import request from '@/utils/request'

export function fetchList() {
  return request({
    url: '/carousel/carouselImg',
    method: 'get',
  })
}

export function createBanner(data) {
  return request({
    url: '/carousel/create',
    method: 'post',
    params: {...data}
  })
}


export function deleteBanner(data) {
  return request({
    url: '/carousel/delete',
    method: 'post',
    params: {...data}
  })
}
